package com.gscitysfy.cus.drain.modules.resource.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gscitysfy.cus.drain.modules.resource.dto.DrainBaseChGoodsRequest;
import com.gscitysfy.cus.drain.modules.resource.dto.DrainBaseChGoodsResponse;
import com.gscitysfy.cus.drain.modules.resource.dto.DrainBaseChGoodsStatistics;
import com.gscitysfy.cus.drain.modules.resource.entity.DrainBaseChGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库物资子表 Mapper 接口
 * </p>
 *
 * @author user
 * @since 2022-10-24 16:58:09
 */
public interface DrainBaseChGoodsMapper extends BaseMapper<DrainBaseChGoods> {


    IPage<DrainBaseChGoodsResponse> selecByRequest(Page<DrainBaseChGoodsRequest> page, @Param("request") DrainBaseChGoodsRequest request);

    List<DrainBaseChGoodsResponse> selecByIds( @Param("ids") List<String> ids);

    DrainBaseChGoodsStatistics iconStatistics(@Param("request") DrainBaseChGoodsRequest request);
}
